package ch.uzh.ifi.sonar;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;

import org.eclipse.jface.preference.IPreferenceStore;

import ch.uzh.ifi.sonar.storage.PreferenceConstants;
/* 
 * Initalize the default preference settings (deprecated) 
 * 
 * */
public class SonarPreferenceInitializer extends AbstractPreferenceInitializer {

	@Override
	public void initializeDefaultPreferences() {
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.STORAGE_NAMESPACE, "SSQA_Storage");
		store.setDefault(PreferenceConstants.STORAGE_URI, "jdbc:mysql://127.0.0.1:3306");
		store.setDefault(PreferenceConstants.STORAGE_DB, "sonar1");
		store.setDefault(PreferenceConstants.STORAGE_DRIVER, "com.mysql.jdbc.Driver");
		store.setDefault(PreferenceConstants.STORAGE_USER, "root");
		store.setDefault(PreferenceConstants.STORAGE_PW, "password");
		
		store.setDefault(PreferenceConstants.CC_PATH_TO_SOURCE, "\\CCFS\\src");
		store.setDefault(PreferenceConstants.CC_VIEW_DEVICE, "Z");
		store.setDefault(PreferenceConstants.CC_VOBS, "CCFS, LOADER, TOOLS, NCFS, UCM_PVOB_PF91");
		store.setDefault(PreferenceConstants.CC_DIFF_REPORTS, false);
		
		store.setDefault(PreferenceConstants.ANALYSIS_DEFAULT_ARCH_FILE, "/Schindler Architecture/architecture.ssqa");
		store.setDefault(PreferenceConstants.ANALYSIS_COUPLING_THRESHOLD, 20);
		store.setDefault(PreferenceConstants.ANALYSIS_COUPLING_COUNT_THRESHOLD, 20);
	}


}
